package com.campus.service.Impl;

import com.campus.dao.AreaDao;
import com.campus.pojo.SysArea;
import com.campus.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
public class AreaServiceImpl implements AreaService {
    @Autowired
    AreaDao areaDao;

    @Override
    public List<SysArea> getAreaList(SysArea area) {
        Map<String,Object> param = new HashMap<>();
        param.put("area",area);
        return areaDao.getAreaList(param);
    }
}
